//
// Created by denglibin on 2021/4/8.
//

#ifndef OPENGL_MINGW_LOADMODELWINDOW_H
#define OPENGL_MINGW_LOADMODELWINDOW_H
#include "../glfw_window.h"
#include "Model.h"
#include "../Shader.h"
class LoadModelWindow : public Window{
private:
    Model *model = nullptr;
    Shader * shader = nullptr;
protected:
    /**
     * 重写paint函数
     */
    void paint()override;
    /**
     * 加载模型
     */
    void loadModel();

    /*mvp*/
    void modelMat();
    void viewMat();
    void projectionMat();

public:
    LoadModelWindow(int width, int height, std::string &title);
    ~LoadModelWindow();
};


#endif //OPENGL_MINGW_LOADMODELWINDOW_H
